package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
/**
* Perforce Revision:
*  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/FlashingSingleFactStatement.java $
*  $Revision: #2 $  $Change: 114929 $  $DateTime: 2012/09/13 12:00:34 $  $Author: Arik.Sher $
*/

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.IFlashingConfig;


public class FlashingSingleFactStatement
extends AbsStatement<IFlashingConfig>
{
	
	@Override
	protected String createEplExpression() 
	{
		String str =
		String.format(eplExpressionText
			, config.getTimeFrameThreshold()       //1. alert time frame
			, config.getNumberOfFlashesThreshold() //2. number of flashes 
			);
		return str;
	}

}
